﻿@model IEnumerable<CleverCMS.Blog.Data.Entities.BlogEntry>

<div class="blog-side-bar green-box">
    <h2><i class="  icon-comments-alt"></i>Latest blog</h2>
    <div class="space20"></div>
    
    @foreach (var entry in Model)
    {
        <div class="row-fluid">
            <div class="green-box-blog">
                <div class="span3">
                    <img alt="" src="">
                </div>
                <div class="span9">
                    <h5>
                        <a href="@Url.Action("Entry","Blog", new {Id = entry.Alias, Category = entry.Category.CategoryName.ToLower() })">@Html.Raw(entry.Created.Day.ToString() + " " + entry.Created.Date.ToString("MMM").ToUpper() + " " + entry.Created.Year.ToString())</a>
                    </h5>
                    <p>
                        @entry.Header
                    </p>
                </div>
            </div>
        </div>
        <div class="space10"></div>  
    }

</div>